package com.yurui;

import com.yurui.config.MyClassPathXmlApplication;
import com.yurui.config.ServiceName;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class ConfigMain {

    public static void main(String[] args) {

//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext-${user.country}.xml");
        ClassPathXmlApplicationContext context = new MyClassPathXmlApplication("applicationContext-${user.country}.xml");

        ServiceName serviceName = context.getBean(ServiceName.class);

        serviceName.say();
    }

}
